package com.qing.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * <p>
 *
 * </p>
 *
 * @author Dong
 * @since 2024-07-20
 */
@Data
@TableName("sys_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    @Alias("id")
    private Integer id;

    @ApiModelProperty("用户名")
    @Alias("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("密码")
    @Alias("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("昵称")
    @Alias("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("邮箱")
    @Alias("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("电话")
    @Alias("电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("地址")
    @Alias("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("创建时间")
    @Alias("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("头像")
    @Alias("头像")
    @TableField("avatar_url")
    private String avatarUrl;
    @ApiModelProperty("角色")
    private String role;

}
